
# 零食产品数据
products = [
    {
        "id": 1,
        "name": "原味薯片",
        "category": "薯片",
        "price": 12.5,
        "calories": 320,
        "protein": 3,
        "fat": 22,
        "carbs": 30,
        "rating": 4.2,
        "flavors": ["咸味"],
        "tags": ["经典", "休闲"]
    },
    {
        "id": 2,
        "name": "酸奶味饼干",
        "category": "饼干",
        "price": 18.0,
        "calories": 280,
        "protein": 5,
        "fat": 12,
        "carbs": 38,
        "rating": 4.5,
        "flavors": ["甜味", "奶香"],
        "tags": ["健康", "早餐"]
    },
    {
        "id": 3,
        "name": "辣味牛肉干",
        "category": "肉制品",
        "price": 35.0,
        "calories": 380,
        "protein": 25,
        "fat": 15,
        "carbs": 10,
        "rating": 4.7,
        "flavors": ["辣味", "咸味"],
        "tags": ["高蛋白", "便携"]
    },
    {
        "id": 4,
        "name": "海苔脆片",
        "category": "海产品",
        "price": 22.0,
        "calories": 150,
        "protein": 8,
        "fat": 5,
        "carbs": 15,
        "rating": 4.3,
        "flavors": ["咸味", "鲜味"],
        "tags": ["低卡", "健康"]
    },
    {
        "id": 5,
        "name": "黑巧克力",
        "category": "巧克力",
        "price": 28.0,
        "calories": 250,
        "protein": 4,
        "fat": 18,
        "carbs": 20,
        "rating": 4.6,
        "flavors": ["苦味", "甜味"],
        "tags": ["抗氧化", "健康"]
    }
]

# 常量定义
constants = {
    "FLAVORS": ["咸味", "甜味", "酸味", "辣味", "苦味", "鲜味", "奶香"],
    "CATEGORIES": ["薯片", "饼干", "巧克力", "肉制品", "海产品", "坚果", "糖果"]
}
